package com.iisi.dao;

import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.iisi.web.JoinControoller;

/**
 * Copyright (c) 2012 IISIGROUP All Rights Reserved.
 * 
 * 負責底層Hibernate持久層DAO處理介面。
 * 
 * 補充說明：@Component 是一個泛化的概念，僅表示一個組件 (Bean)
 * 
 * @author tbs
 * @param <T>
 * @date 2012/12/4
 */
@Repository
public class BaseDAOHibernate extends HibernateDaoSupport {

	private static final Logger LOG = LoggerFactory
			.getLogger(JoinControoller.class);

	@Autowired
	public final void init(final SessionFactory factory) {
		LOG.info("BaseDAOHibernate......");
		setSessionFactory(factory);
	}

}
